text = input("请输入要保存的文本：")
with open("D:\\hello.txt", "w") as f:  
    f.write(text)  
print("保存成功！")  

